require('./PageEngView.less');
import { Control, Route } from 'react-keeper';
import React,{Component} from 'react';
import Reflux from 'reflux';
import ReactMixin from 'react-mixin';
import EngInfoView from '../../../components/eng/EngInfoView';
import GalleryInfo from '../../../components/common/GalleryInfo';

import Actions from './Actions'
import Store from './Store';
import 'weui';
import { Tab,TabBarItem,TabBar,Page,Article,
  Panel,
  PanelHeader,
  PanelBody,
  PanelFooter,
  MediaBox,
  MediaBoxHeader,
  MediaBoxBody,
  MediaBoxTitle,
  MediaBoxDescription,
  MediaBoxInfo,
  MediaBoxInfoMeta,
  Cells,
  Cell,
  CellHeader,
  CellBody,
  CellFooter,
  Flex,
  FlexItem,
  Grids
} from  'react-weui/build/packages'




class EngView extends Component {
    constructor(props) {
      super(props);
      this.state = {
      }
      this.handleChange = this.handleChange.bind(this);
      this.myHome = this.myHome.bind(this);
    }

    handleChange(key){
        //this.dispatch('setTabbarIndex',key);
        //Control.go(this.state.menu[key].path, ); // keeper的跳转
    }

  myHome() {
    Control.go('/home');
  }

  render() {

        return (
          <div className="page engview">

            <EngInfoView eng={this.state.engview.eng} imgls={this.state.engview.imgls} />
          </div>
        );
  }

  componentDidMount() {
  }

  componentWillMount() {
    if(Control.state){
      Actions.loadMode(Control.state);
    }

  }

  shouldComponentUpdate(nextProps, nextState) {
    return false;
  }

}

ReactMixin.onClass(EngView, Reflux.connect(Store, 'engview'));



export default EngView ;





